// 导航栏数据描述
export interface NavItem {
  text: string;
  href: string;
  icon?: string;
  sort?: number;
  columns?: number;
  children: NavItem[];
  firstHref?: string; // 二级菜单下的第一个链接
  open?: boolean; // 导航栏中是否展开
}

// 笔记主要目录
export const articleNavList: NavItem[] = [
  {
    icon: "mdi:tools",
    text: "工具",
    href: "#",
    sort: 1,
    firstHref: "/article/工具/1-系统常用命令",
    children: [],
  },
  {
    icon: "mdi:vuejs",
    text: "VUE",
    href: "#",
    sort: 2,
    firstHref: "/article/vue/1-vue3",
    children: [],
  },
  {
    icon: "mdi:language-javascript",
    text: "JS",
    href: "#",
    sort: 3,
    firstHref: "/article/js/1-常用方法",
    children: [],
  },
  {
    icon: "mdi:language-css3",
    text: "CSS",
    href: "#",
    sort: 4,
    firstHref: "/article/css/1-基础",
    children: [],
  },
  {
    icon: "mdi:nodejs",
    text: "NODE",
    href: "#",
    sort: 5,
    firstHref: "/article/node/1-path",
    children: [],
  },
  {
    icon: "mdi:language-python-text",
    text: "PYTHON",
    href: "#",
    sort: 6,
    firstHref: "/article/python/1-基础语法",
    children: [],
  },
  {
    icon: "mdi:file-document-outline",
    text: "OTHER",
    href: "#",
    sort: 7,
    firstHref: "/article/other/1-markdown",
    children: [],
  },
];

// 导航栏数据
export const navigation: NavItem[] = [
  {
    href: "/article",
    text: "笔记",
    children: articleNavList as any,
  },
  {
    href: "/practice",
    text: "实践",
    children: [],
  },
  {
    href: "/blog",
    text: "博客",
    children: [],
  },
];

// 外部链接
export const externalLinks: NavItem[] = [
  {
    href: "https://gitee.com/wudandong",
    text: "gitee",
    icon: "gitee",
    children: [],
  },
  {
    href: "https://blog.csdn.net/weixin_38728902",
    text: "csdn",
    icon: "csdn",
    children: [],
  },
];
